{extend name="public/base" /}
{block name="title"}充值列表{/block}

{block name="content"}
<h2 class="sub-header">充值列表</h2>

<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
<thead><tr class="info">
<th>ID</th>
<th>用户名</th>
<th>充值金额</th>
<th>充值方式</th>
<th>支付流水号</th>
<th>充值时间</th>
<th>状态</th>
</tr></thead>
<tbody>
<?php if($list){foreach($list as $row){ ?><tr>
<td><?php echo $row['id'].'-'.$row['recharge_sn']; ?></td>
<td><a href="{:url('index')}?user_id=<?php echo $row['user_id']; ?>"><?php if($row['user']['mobile']){echo $row['user']['mobile'];}else{echo $row['user']['user_name'];} ?></a></td>
<td><font color="red"><?php echo $row['pay_money']; ?></font></td>
<td><a href="{:url('index')}?pay_type=<?php echo $row['pay_type']; ?>"><?php echo $row['pay_type_text']; ?></a></td>
<td><?php echo $row['trade_no']; ?></td>
<td><?php echo date('Y-m-d H:i:s',$row['pay_time']); ?></td>
<td><?php echo $row['status_text']; ?></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

<form id="searcharc" class="navbar-form" action="{:url('index')}" method="get">
<div class="form-group"><input type="text" name="keyword" id="keyword" class="form-control required" placeholder="搜索关键词..."></div>
<button type="submit" class="btn btn-info" value="Submit">搜索一下</button></form>

<div class="backpages">{$page}</div>
{/block}